import request from '@/utils/request'

export function queryAllColumn(params) {
  return request({
    url: 'rest/api/layout/v1/column/pc/query/column/layout',
    method: 'get',
    params
  })
}

export function queryAllUserColumn(params) {
  return request({
    url: 'rest/api/layout/v1/column/pc/query/column/user',
    method: 'get',
    params
  })
}

export function userSaveCustomLayout(data) {
  return request({
    url: 'rest/api/layout/v1/column/pc/save/all/user',
    method: 'post',
    data
  })
}

export function goBack(params) {
  return request({
    url: 'rest/api/layout/v1/column/pc/user/back',
    method: 'get',
    params
  })
}

export function queryAllGuestColumn(params) {
  return request({
    url: 'rest/api/guest/layout/v1/column/pc/query/column/layout',
    method: 'get',
    params
  })
}
